package com.itheima_5;

public class Employee implements Person {
    private  int salary;

    public Employee() {
    }

    public Employee(int salary) {
        this.salary = salary;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }
public void work(){
    System.out.println("工人在工作");
}
    @Override
    public String toString() {
        return "Employee{" +
                "salary=" + salary +
                '}';
    }
}
